<?php

$this->ts('varchar', $param['var1']);

$sql = "

select * from table where var1 = {$param['var1']};

";

return $sql; 

?>